package team.headnurse.nursemanagement.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import team.headnurse.nursemanagement.dao.LoginDao;
import team.headnurse.nursemanagement.model.Login;
import team.headnurse.nursemanagement.service.LoginService;


/**
 * @author Eugene-Forest
 */
@Transactional(rollbackFor = Exception.class)
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginDao loginDao;

    /**
     * 通过id删除员工密码
     * @param staff_id id
     * @return 如果成功则返回数字1
     */
    @Override
    public String findPassword(String staff_id) {
        return loginDao.findPassword(staff_id);
    }
}